<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        body {
            background-color: #d1d1d1;
        }

        .box {
            width: 35px;
            height: 33px;
            /* background-color: rgb(224, 78, 78); */
            background: url(images/sprites.png) no-repeat -152px -105px;
        }

        .bg1 {
            width: 235px;
            height: 127px;
            background-color: #666;
            background: url(images/sprites.png) 0px -219px;
        }

        .bg2 {
            width: 35px;
            height: 38px;
            background: url(images/sprites.png) 0px -138px;
        }

        /* 自己名字的精灵图 */
        .moyi div {
            display: inline-block;
        }

        .m {
            width: 145px;
            height: 117px;
            background: url(images/abcd.jpg) -107px -273px;
        }

        .o {
            width: 116px;
            height: 118px;
            background: url(images/abcd.jpg) -367px -276px;
        }

        .y {
            width: 113px;
            height: 118px;
            background: url(images/abcd.jpg) -365px -551px;
        }

        .i {
            width: 61px;
            height: 118px;
            background: url(images/abcd.jpg) -327px -140px;
        }

        .w {
            width: 140px;
            height: 118px;
            background: url(images/abcd.jpg) -113px -560px;
        }

        .t {
            width: 102px;
            height: 118px;
            background: url(images/abcd.jpg) -367px -406px;
        }
    </style>
</head>

<body>
    <!-- 精灵图主要是用于背景小图标的，把很多小图标弄到一张大图里面来，
    然后利用 background-position来调节各个图标应在的位置 -->
    <div class="box"></div>
    <div class="bg1"></div>
    <div class="bg2"></div>
    <div class="moyi">
        <div class="m"></div>
        <div class="o"></div>
        <div class="y"></div>
        <div class="i"></div>
    </div>
    <div class="w"></div>
    <div class="t"></div>
    <!-- <div class="y"></div> -->
</body>

</html>